//
//  ZMMessageViewController.m
//  基本框架
//
//  Created by runone02 on 2018/6/29.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "ZMMessageViewController.h"
#import "ZMMessageView.h"

@interface ZMMessageViewController ()
/** */
@property (nonatomic, strong) ZMMessageView *messageView;
@end

@implementation ZMMessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setMessageView];
    [self setupNavView];
}

- (void)setupNavView{
    [self.navView.leftButton setTitle:@"返回" forState:UIControlStateNormal];
    [self.navView.centerButton setTitle:@"选择" forState:UIControlStateNormal];
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    self.navigationController.navigationBar.hidden = NO;
}

- (void)setMessageView{
    self.messageView = [[ZMMessageView alloc]init];
    [self.view addSubview:self.messageView];
    [self.messageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(self.view);
    }];
}

@end
